<?php
if ($this->data[$this->name][step]==1||$this->data[is_report]==1)
{
    //$this->helpers->htmlx->MenuText1($this->data[title], null);
    //echo '<tr><td>';
	echo $this->data[preview];
	//echo '</td></tr>';
}
else
{
	$tool_buttons = array
	(
		'print_button' => array
		(
			'image'=>'btnEditLarge.gif', 
			'text'=>LANG_PRINT, 
			'url'=>'javascript:submitform("myform")'
		)
		
	);
	
    $this->helpers->htmlx->MenuText1($this->data[title], null);
    $this->helpers->toolbars->Toolbar($tool_buttons);	
    echo '<table class="eva" style="width:100%;" cellspacing="0"  cellpadding="0"><body>';
	echo '<tr align = "left" class="gridHeader"><td>'.ucfirst(LANG_SYSTEM_SETTINGS).'</td></tr>';
	$this->helpers->htmlx->checkBoxRow(LANG_SHOW_BORDER, '', '', 'onclick="change_border(this.checked)"');
	$this->helpers->htmlx->checkBoxRow(LANG_LABEL_BOLD, '', '', 'onclick="makeBold(this.checked)"');
	
	echo '<tr><td><table width = "100%"><tbody>';
	echo '<tr>';
	echo '<td width = 15>';
	echo '<input type="button" style="border: 0pt none ; padding: 0pt; background: transparent url('.IMAGES.'/arrow_up.gif) no-repeat scroll 0%; width: 11px; height: 8px;" onclick="changePadding( 1 )"/>';
	echo '<input type="button" style="border: 0pt none ; padding: 0pt; background: transparent url('.IMAGES.'/arrow_down.gif) no-repeat scroll 0%; width: 11px; height: 8px;" onclick="changePadding( -1 )"/>';
	echo '</td>';
	echo '<td width = "150px">';
	echo LANG_CELL_PADDING;
	echo '</td>';
	echo '<td width = "15px">';
	$this->helpers->htmlx->inputText('size',0 ,'id = "cell_padding" readonly="readonly" style="width:20px; height:15px;  font-size:7pt ; padding:0; "');
	echo '</td><td></td>';
	echo '</tr>';
	echo "</tbody></table></td></tr>";

    echo '<tr><td><table width = "100%"><tbody>';
	echo '<tr>';
	echo '<td width = 15>';
	echo '<input type="button" style="border: 0pt none ; padding: 0pt; background: transparent url('.IMAGES.'/arrow_up.gif) no-repeat scroll 0%; width: 11px; height: 8px;" onclick="changeFontSize( 1, 1 )"/>';
	echo '<input type="button" style="border: 0pt none ; padding: 0pt; background: transparent url('.IMAGES.'/arrow_down.gif) no-repeat scroll 0%; width: 11px; height: 8px;" onclick="changeFontSize(-1, 1 )"/>';
	echo '</td>';
	echo '<td width = "150px">';
	echo LANG_LABEL_FONT;
	echo '</td>';
	echo '<td width = "15px">';
	$this->helpers->htmlx->inputText('size',12,'id = "font1"   readonly="readonly" style="width:20px; height:15px;  font-size:7pt ; padding:0;"');
	echo '</td><td></td>';
	echo '</tr>';
	echo "</tbody></table></td></tr>";
	
	echo '<tr><td><table width = "100%"><tbody>';
	echo '<tr>';
	echo '<td width = 15>';
	echo '<input type="button" style="border: 0pt none ; padding: 0pt; background: transparent url('.IMAGES.'/arrow_up.gif) no-repeat scroll 0%; width: 11px; height: 8px;" onclick="changeFontSize( 1, 2 )"/>';
	echo '<input type="button" style="border: 0pt none ; padding: 0pt; background: transparent url('.IMAGES.'/arrow_down.gif) no-repeat scroll 0%; width: 11px; height: 8px;" onclick="changeFontSize(-1, 2 )"/>';
	echo '</td>';
	echo '<td width = "150px">';
	echo LANG_DATA_FONT;
	echo '</td>';
	echo '<td width = "15px">';
	$this->helpers->htmlx->inputText('size',12 ,'id = "font2" readonly="readonly" style="width:20px; height:15px;  font-size:7pt ; padding:0;"');
	echo '</td><td></td>';
	echo '</tr>';
	echo "</tbody></table></td></tr>";
	echo "</body></table>";
	echo $this->data[preview];
	echo '<form name="myform" method="POST" >';
	$this->helpers->htmlx->hidden('final_table', '');
	$this->helpers->htmlx->hidden('title', $this->data[title]);
	echo '</form>';
	
}
?>